package com.codeyang.mocktest2.service.impl;

import com.codeyang.mocktest2.service.ResourceService;
import org.springframework.stereotype.Service;

import java.util.UUID;

/**
 * 描述: describe
 *
 * @author shengyang5
 * @version 2021/7/22 10:31
 */
@Service
public class ResourceServiceImpl implements ResourceService {


    @Override
    public String calculationFile(String originalFilename) {
        UUID uuid = UUID.randomUUID();
        String prefix = uuid.toString().replaceAll("-", "");
        return prefix +"-"+ originalFilename;
    }
}
